let moment = require("moment");

let met=require('../utils/01.两个日期的差')

const startDate=moment("2024-09-16")
const endDate=moment("2024-09-17")

const differDays=endDate.diff(startDate,'days')
console.log(differDays);

//使用组件
//1.开始日期2023-12-12  2.结束日期2024-12-12  计算两个日期的差
let dif1=met.getTimeDiffBetweenDates("2023-12-12","2024-12-12","days")
console.log(dif1)